package com.example.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author canger
 * @Deseription 消息的消费者
 * @create 2018/9/3 18:13
 **/
@Component
@RabbitListener(queues ="ding")
public class Receivers {

    @RabbitHandler
    public void  process(String ding){
        System.out.println("Receiver"+ding);
    }

}
